#define  _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <math.h>
int main()
{
	int i = 0;
	int ret = 0;
	int n = 0;
	scanf("%d", &n);
	while (n)
	{
		int m = n % 10;
		if (0 == m % 2)
		{
			m = 0;
		}
		else
		{
			m = 1;
		}
		ret += m * pow(10, i++);
		n /= 10;
	}
	printf("%d\n", ret);
	return 0;
}